﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Base.Core.Biz
{
    [Serializable]
    public class SearchInfo
    {
        public SearchInfo() { }

        public SearchInfo(string name, object value)
        {
            this.Name = name;
            this.Value = value;
        }

        public SearchInfo(string name, object value, SearchOperator searchOperator)
            : this(name, value)
        {
            this.SearchOperator = searchOperator;
        }

        public String Name { get; set; }

        public object Value { get; set; }

        public SearchOperator SearchOperator { get; set; }
    }

    public enum SearchOperator
    {
        Like,
        Equal,
        FromDate,
        ToDate
    }
}